package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 房源信息对象 credit_room
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class CreditRoom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房源ID */
    private Long roomId;

    /** 房源标题 */
    @Excel(name = "房源标题")
    private String roomTitle;

    /** 房源地址 */
    @Excel(name = "房源地址")
    private String roomAddress;

    /** 租金（月） */
    @Excel(name = "租金（月）")
    private BigDecimal roomPrice;

    /** 面积（平米） */
    @Excel(name = "面积（平米）")
    private BigDecimal roomArea;

    /** 房型 */
    @Excel(name = "房型")
    private String roomType;

    /** 房源图片（JSON格式） */
    @Excel(name = "房源图片")
    private String roomImages;

    /** 房源描述 */
    @Excel(name = "房源描述")
    private String roomDesc;

    /** 所需信用分 */
    @Excel(name = "所需信用分")
    private Integer requiredScore;

    /** 是否可租（0否 1是） */
    @Excel(name = "是否可租", readConverterExp = "0=否,1=是")
    private String isAvailable;

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setRoomTitle(String roomTitle) 
    {
        this.roomTitle = roomTitle;
    }

    public String getRoomTitle() 
    {
        return roomTitle;
    }
    public void setRoomAddress(String roomAddress) 
    {
        this.roomAddress = roomAddress;
    }

    public String getRoomAddress() 
    {
        return roomAddress;
    }
    public void setRoomPrice(BigDecimal roomPrice) 
    {
        this.roomPrice = roomPrice;
    }

    public BigDecimal getRoomPrice() 
    {
        return roomPrice;
    }
    public void setRoomArea(BigDecimal roomArea) 
    {
        this.roomArea = roomArea;
    }

    public BigDecimal getRoomArea() 
    {
        return roomArea;
    }
    public void setRoomType(String roomType) 
    {
        this.roomType = roomType;
    }

    public String getRoomType() 
    {
        return roomType;
    }
    public void setRoomImages(String roomImages) 
    {
        this.roomImages = roomImages;
    }

    public String getRoomImages() 
    {
        return roomImages;
    }
    public void setRoomDesc(String roomDesc) 
    {
        this.roomDesc = roomDesc;
    }

    public String getRoomDesc() 
    {
        return roomDesc;
    }
    public void setRequiredScore(Integer requiredScore) 
    {
        this.requiredScore = requiredScore;
    }

    public Integer getRequiredScore() 
    {
        return requiredScore;
    }
    public void setIsAvailable(String isAvailable) 
    {
        this.isAvailable = isAvailable;
    }

    public String getIsAvailable() 
    {
        return isAvailable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roomId", getRoomId())
            .append("roomTitle", getRoomTitle())
            .append("roomAddress", getRoomAddress())
            .append("roomPrice", getRoomPrice())
            .append("roomArea", getRoomArea())
            .append("roomType", getRoomType())
            .append("roomImages", getRoomImages())
            .append("roomDesc", getRoomDesc())
            .append("requiredScore", getRequiredScore())
            .append("isAvailable", getIsAvailable())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 